﻿// See https://aka.ms/new-console-template for more information
Console.Write("你好！我是刘意盎");
Console.WriteLine();
int i=0,j=0;
Console.Write("Please input a number: ");
string input1 = Console.ReadLine();
 i = int.Parse(input1); 

Console.Write("Please input a number: ");
string input2 = Console.ReadLine();
 j = int.Parse(input2); 

bool Check(int m)
{
    int counter = 0;
    for (int n = 1; n < m+1;n++ )
    {
        if (m % n == 0)
        {
            counter++;
        }
    }

    if (counter == 2)
    {
        return true;
    }
    else
    {
        return false;
    }
    counter = 0;
}

int m = 0;
int count = 0;
for (m=i; m < j; m++)
{
    if (Check(m))
    {
        count++;
        Console.Write(m);
        Console.Write(" ");
        if (count % 10 == 0)
        {
            Console.WriteLine();
        }
    }
}

